import {Authority, getBolb} from '../request'

const {get, post} = Authority

// 查询布控列表
export const getRoadControlList = params => get('/arrangement/point/v1/queryList', {params})
// 查询传感器id下拉列表
export const getSensorList = params => get('/equip/sensor-info/v1/querySelectList', {params})
/*获取摄像机选择列表*/
export const getCameraIdList = params => get('/equip/camera-info/v1/querySelectList', {params})
//获取可授权的摄像机列表
export const getAuthCameraList = params => get('/equip/camera-info/v1/queryAuthList', {params})


//查询照片列表
export const getRoadList = params => get('/record/camera-photo-record/v1/queryList', {params})
//布控点树形列表
export const getArrangementList = params => get('/arrangement/point/v1/queryTreeList', {params})
//预警管理列表
export const getEarlywarningList = params => get('/warning/early-warning/v1/queryList', {params})
//新增事故报告
export const addReport = params => post('/record/accident-report/v1/add', params)
//新增事故报告
export const queryReport = params => get('/record/accident-report/v1/queryOneById', {params})
//修改事故报告
export const updateReport = params => post('/record/accident-report/v1/update', params)
//下载照片
export const downloadPhotos = params => getBolb('/record/camera-photo-record/v1/downPic', {params})
// 立即拍照和视频
export const actionNow = params => get('/record/camera-photo-record/v1/photograph', {params})
